<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
	<title>CSS3 动画</title>
    <script src="./prefixfree.js"></script>
	<style>
		html,
		body {
			height: 100%;
		}
		
		body {
			margin: 0;
			padding: 0;
			position: relative;
		}
		
		.box1 {
			width: 240px;
			position: absolute;
			top: 50%;
			transform: translate(100px, -50%);
			animation: run 2s forwards 1s infinite;
		}
		
		.box {
			width: 150px;
			height: 150px;
			border-radius: 50%;
			background-color: lightblue;
		}
		
		.box {
			display: block;
		}
		
		@keyframes run {
			0% {}
			15% {
				transform: translate(0, -50%)
			}
			90% {
				transform: translate(800px, -50%);
				animation-timing-function: ease-in;
			}
			100% {
				transform: translate(800px, -50%);
				transform-origin: right bottom;
			}
		}
	</style>
</head>

<body>
	<div class="box1">
		<div class="box"></div>
	</div>
</body>

</html>